From aab0da35bba39b2d9db5ae2f04d7f5712c26cde0 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 31 Aug 2004 21:22:58 +0000 Subject: [PATCH] Allow power-off to work with USB. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@889 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/jeeps/gpscom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/jeeps/gpscom.c b/gpsbabel/jeeps/gpscom.c index 1e45be28e..80bee754c 100644 --- a/gpsbabel/jeeps/gpscom.c +++ b/gpsbabel/jeeps/gpscom.c @@ -41,6 +41,8 @@ int32 GPS_Command_Off(const char *port) GPS_Util_Little(); + gps_is_usb = (0 == strncmp(port, "usb:", 4)); + if(!GPS_Serial_On(port, &fd)) return gps_errno; -- 2.30.2